#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include <stdio.h>

int main()
{
    int n = 0;
    int k = 0;
    scanf("%d %d", &n, &k);
    int x = 0;
    if (k == 0)
    {
        x = 1;
    }
    else
    {
        x = k;
    }
    int y = k + 1;
    long long count = (n - k + 1) * (n - k) / 2;

    for (x = k; x <= n; x++)
    {
        for (y = k + 1; y <= x; y++)
        {
            if (x % y >= k)
            {
                count++;
            }
        }
    }

    printf("%lld", count);

    return 0;
}

/*
88856 768
7465536938
*/